//导入axios
import axios from "axios"
function http({ url }) {
    return new Promise((resolve, reject) => {
        axios.get(url).then((res) => {
            resolve(res.data.list)
        })
    })
}
//获取疫情数据
export const getDisease = () => {
    return http({
        url: "https://interface.sina.cn/news/wap/fymap2020_data.d.json?_=1580892522427",
    })
}

